package org.geek4j.jms;

import org.geek4j.base.BaseTest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Geek4J
 * @description JMS Test
 */
@Slf4j
public class JMST extends BaseTest {

	@Autowired
	private Sender sender;

	@Test
	public void sendJMS() {
		// Send a message
		log.error("Sending a new message.");
		for (int i = 0; i < 7; i++) {
			sender.sendJMS("Geek4J", "Hello world !" + i);
		}
		log.error("Sending message complete.");
	}
}
